<template>
    <div class="page-container">
        <div style="margin-bottom: 20px;">目前只支持直接导出数据库文件。</div>
        <a-button type="primary" @click="downloadDbFile">下载 db 文件</a-button>
    </div>
</template>
<script>
import { exportDbFile } from '../../../api/setting'
export default {
    name: 'ExportData',
    methods: {
        downloadDbFile() {
            console.log(exportDbFile());
            window.open(exportDbFile())
        }
    }
}
</script>
<style scoped>
.page-container {
    padding: 50px 20px;
}
</style>

